import myAxios from "@/utils/request";

const applyAddContact = async (data: any) => {
    return myAxios({
        url: '/contact/applyAdd',
        method: 'post',
        data
    }, { loading: false, error_message_show: true, code_message_show: true });
}

const listContactApply = async (data: any) => {
    return myAxios({
        url: '/contact/listContactApply',
        method: 'post',
        data
    }, { loading: false, error_message_show: true, code_message_show: true });
}

const dealWithApply = async (data: any) => {
    return myAxios({
        url: '/contact/dealWithApply',
        method: 'post',
        data
    }, { loading: false, error_message_show: true, code_message_show: true });
}

const getAllUserContact = async () => {
    return myAxios({
        url: '/contact/listUserContact',
        method: 'get',

    }, { loading: false, error_message_show: true, code_message_show: true });
}

export {
    applyAddContact,
    listContactApply,
    dealWithApply,
    getAllUserContact
}